]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Fix app ID in .Devel metainfo
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 31 Jan 2024 01:43:56 +0000 (02:43 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 1 Feb 2024 12:11:17 +0000 (12:11 +0000)
The ID is currently hard-coded to the non-development one, with
the result that the .Devel app effectively doesn't have any
metainfo.

Fix that by configuring the file with the correct ID.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3158>

subprojects/extensions-app/data/metainfo/meson.build
subprojects/extensions-app/data/metainfo/org.gnome.Extensions.metainfo.xml.in

index df56b80d27e1e7f6ad1181ae593175cc04cf7c52..a7a823034bec0ba4e7274a1c1c93040de6daa231 100644 (file)
@@ -1,6 +1,10 @@
 metainfo = app_id + '.metainfo.xml'
 i18n.merge_file(
-  input: base_id + '.metainfo.xml.in',
+  input: configure_file(
+    input: base_id + '.metainfo.xml.in',
+    output: app_id + '.metainfo.xml.in',
+    configuration: {'app_id': app_id},
+  ),
   output: metainfo,
   po_dir: po_dir,
   install: true,
index 2d5a692697a059c8499c8c7c4b78dc452c295cf5..1e7b219e4a710e76a19da430532c67ddf4833d66 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <component type="desktop-application">
-  <id>org.gnome.Extensions</id>
+  <id>@app_id@</id>
 
   <name>Extensions</name>
   <summary>Manage your GNOME Extensions</summary>
@@ -22,7 +22,7 @@
   </developer>
 
   <translation type="gettext">gnome-extensions-app</translation>
-  <launchable type="desktop-id">org.gnome.Extensions.desktop</launchable>
+  <launchable type="desktop-id">@app_id@.desktop</launchable>
 
   <kudos>
     <kudo>HiDpiIcon</kudo>